//
//  CheckboxButton.m
//  CarTown
//
//  Created by 熊浩 on 15/7/31.
//  Copyright (c) 2015年 熊浩. All rights reserved.
//

#import "CheckboxButton.h"

@implementation CheckboxButton
-(CGRect)imageRectForContentRect:(CGRect)contentRect{
    CGFloat x=contentRect.origin.x;
    CGFloat y=contentRect.origin.y;
    CGFloat height=contentRect.size.height;
    CGFloat newx=x;
    CGFloat newy=y+(height-16)/2;
    CGFloat newheigth=16;
    CGFloat newwidth=16;
    CGRect frame=CGRectMake(newx, newy, newwidth, newheigth);
    return frame;
}
-(CGRect)titleRectForContentRect:(CGRect)contentRect{
    CGFloat x=contentRect.origin.x;
    CGFloat y=contentRect.origin.y;
    CGFloat height=contentRect.size.height;
    CGFloat newx=x;
    return CGRectMake(newx, y,contentRect.size.width, height);
}

@end
